package com.wjgl.action;

import com.opensymphony.xwork2.ActionSupport;
import com.wjgl.domain.Role;
import com.wjgl.service.RoleService;

public class GoAuthPage extends ActionSupport {
	private RoleService roleService;
	private Integer id;
	private Role role;

	public RoleService getRoleService() {
		return roleService;
	}

	public void setRoleService(RoleService roleService) {
		this.roleService = roleService;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Role getRole() {
		return role;
	}

	public void setRole(Role role) {
		this.role = role;
	}

	@Override
	public String execute() throws Exception {
		// TODO Auto-generated method stub
		role = roleService.findRoleById(id);
		return SUCCESS;
	}
	
}
